<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${note.id}"  type="hidden">
												
																																	<div class="form-group">	
								<label class="col-sm-3 control-label">名称：</label>
								<div class="col-sm-8">
																		<input id="nickname" name="nickname" th:value="${note.nickname}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">电话号码：</label>
								<div class="col-sm-8">
																		<input id="phone" name="phone" th:value="${note.phone}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">公司名称：</label>
								<div class="col-sm-8">
																		<input id="companyname" name="companyname" th:value="${note.companyname}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">邮箱：</label>
								<div class="col-sm-8">
																		<input id="email" name="email" th:value="${note.email}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">主题：</label>
								<div class="col-sm-8">
																		<input id="theme" name="theme" th:value="${note.theme}" class="form-control" type="text">
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">内容：</label>
								<div class="col-sm-8">
																		<textarea id="content" name="content" th:text="${note.content}" class="form-control" rows="5"></textarea>
																	</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">留言时间：</label>
								<div class="col-sm-8">
									<!--<input id="createtime" name="createtime" th:value="${#dates.format(note.createtime,'yyyy-MM-dd HH:mm:ss')}"
									class="form-control" type="text"  onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:ss'})">-->

				<input id="createtime" name="createtime" type="text" th:value="${note.createtime} eq null ? '' : ${#dates.format(note.createtime ,'yyyy-MM-dd HH:mm:ss')}"
					   placeholder="请选择日期"  class="laydate-icon form-control layer-date layui-input"   style="background-color: #fff;" readonly="readonly" >


								</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<!-- <input id="status" name="status" th:value="${note.status}" class="form-control" type="text"> -->
									<select name="status"  class="form-control valid" style="width: 100%" >
										<option value="0"  th:selected="${note.status == 0 }">正常</option>
										<option value="1"  th:selected="${note.status == 1 }" >废弃</option>
									</select>
								</div>
								
								
							</div>
																				<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
									<button type="button" class="btn closeBtn" onclick="myClose();">关闭</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<!--<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>-->
	<script type="text/javascript" src="/js/appjs/hnzk/note/edit.js">
	</script>
	<script>

		function myClose(){
			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
			parent.layer.close(index); //再执行关闭

		}
		//执行一个laydate实例
		laydate.render({
			elem: '#createtime' //指定元素
			,type: 'datetime'
			,theme: '#393D49'

		});
	</script>
</body>
</html>
